﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PCUIFrame : IUIFrame
{
    private GameObject ui;

    public GameObject InitEnviroment(GameObject camera)
    {
        UnityEngine.Object canvasPrefab = Resources.Load("Prefab/UI/PCUI");
        ui = GameObject.Instantiate(canvasPrefab) as GameObject;
        return ui.transform.Find("Canvas").gameObject;
    }

    public void ReleaseEnviroment()
    {
        GameObject.Destroy(ui);
    }

    public void UpdateCanvasPosition(RectTransform canvas, Transform playerTransform)
    {
        return;
    }
}
